import java.io.Serializable;

public class Compte implements Serializable
{
	private String nom, mdp;
	private int sld;
	
	
	public Compte(String nomProprio, String password, int solde)
	{
		this.nom = nomProprio;
		this.mdp = password;
		this.sld = solde;
	}
	
	public boolean compteOk(String nomProprio, String password)
	{
		if(this.nom == nomProprio && this.mdp == password)
		{
			return true;
		}
		else 
			return false;
	}

	public int getSld() {
		return sld;
	}

	public void setSld(int sld) {
		this.sld = sld;
	}

	public String getNom() {
		return nom;
	}

	public String getMdp() {
		return mdp;
	}
	
	
}
